package com.twu.biblioteca.ui;

import com.twu.biblioteca.app.Library;
import com.twu.biblioteca.app.user.User;
import com.twu.biblioteca.ui.menus.UserLoginMenu;

import java.io.BufferedReader;

public class LoginSerivce {

    public static User login(BufferedReader bufferedReader, Library library) {
        UserLoginMenu.displayLoginPrompt();
        User user = UserLoginMenu.readUserDetailsAndRetrieveUserFromRecords(bufferedReader, library);
        return user;
    }
}
